//package projects.part5;

public class SparseGridNode {
    private Object occupant;
    private int col;
    private SparseGridNode next;

    public SparseGridNode(Object occ, int rcol, SparseGridNode rnext){
        occupant = occ;
        col = rcol;
        next = rnext;
    }

    public Object getOccupant() {
        return occupant;
    }

    public void setOccupant(Object occ) {
        occupant = occ;
    }

    public int getColumn() {
        return col;
    }

    public SparseGridNode getNext() {
        return next;
    }

    public void setNext(SparseGridNode newNext){
        next = newNext;
    }


}
